package cn.xej.health.user.feign;

import cn.xej.health.common.utils.CommonResult;
import cn.xej.health.common.utils.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author xej
 */
@FeignClient("health-team")
public interface TeamFeignService {
    /**
     * 获取团队信息
     * @param tid
     * @return
     */
    @RequestMapping("/team/info/{tid}")
    CommonResult info(@PathVariable("tid")Integer tid);

    /**
     * 获取团队信息根据用户编号
     * @param uuid
     * @return
     */
    @GetMapping("/team/getTeamByUserId/{uuid}")
    CommonResult getTeamByUserId(@PathVariable("uuid")Integer uuid);
}
